import { NgModule } from '@angular/core';
import { RouterModule } from '@angular/router';
import { Route } from '@angular/router';

import { MaintaskComponent } from './maintasks/maintask.component';
import { SidetaskComponent } from './sidetasks/sidetask.component';
import { DeliveryTasksComponent } from './batch-tasks/delivery-tasks.component';

@NgModule({
    imports: [
        RouterModule.forChild([
            {
                path: '',
                children: [
                    { path: 'model', component: MaintaskComponent, data: { permission: 'Mes58.Pages.Maintasks' } },
                    { path: 'month', component: SidetaskComponent, data: { permission: 'Mes58.Pages.Sidetasks' } },
                    { path: 'delivery', component: DeliveryTasksComponent, data: { permission: 'Mes58.Pages.Delivery' } },
                ]
            }
        ])
    ],
    exports: [
        RouterModule
    ]
})
export class PlanRoutingModule { }
